package glemipsc;
public class TypeFloat extends TypeInteger {
	public TypeFloat() {
		super();
		GLEMipsC.compiler.displayError(ErrorLevel.WARNING, "Floating point types unsupported by GLE MIPS processor. \"float\"s converted to \"int\", \"double\"s converted to \"long int\".");
	}
	
	/*public TypeFloat() {
		typeFormat = Type.TypeFormat.FLOAT;
	}

	public String getName() {
		if (this.longType)
			return "double";
		return "float";
	}

	
	public boolean isCompatibleWith(Type type) {
		return type.typeFormat != Type.TypeFormat.VOID;
	}

	public int getValueLength() {
		if (this.longType)
			return GLEMipsC.compiler.environment.implementation.getDoubleSize() / 8;
		else
			return GLEMipsC.compiler.environment.implementation.getFloatSize() / 8;
	}
	
	public int sizeOf() {
		return getValueLength();
	}*/
	
}
